// 这是一个用于创建与云开发链接的全部 API
import user from "./user.js";
import snippets from "./snippets.js";
class Cloud {
    constructor({ env }) {
        this.app = window.cloudbase.init({
            env,
        });
        this.auth = this.app.auth({
            persistence: "local",
        });
        this.db = this.app.database();
        window.Cloud = this;
    }
}
const CloudApp = new Cloud({ env: "code-snippets-7gv3usem79c26e87" });
Object.assign(CloudApp, user, snippets);
export default CloudApp;
